var t = getApp();

Page({
    data: {
        article_id: "",
        report_desc: ""
    },
    onLoad: function(t) {
        this.setData({
            article_id: t.article_id
        });
    },
    bindTextAreaBlur: function(t) {
        this.setData({
            report_desc: t.detail.value
        });
    },
    bindButtonTap: function() {
        this._report();
    },
    _report: function(e) {
        t._getNetWork({
            url: t.getNetAddresss("plugin.article.api.article.report"),
            data: {
                article_id: this.data.article_id,
                desc: this.data.report_desc
            },
            success: function(t) {
                1 == t.data.result ? e && e(t) : console.error(t);
            },
            fail: function(t) {
                console.error(t);
            }
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});